package com.car.carsharing.mapper;

import com.car.carsharing.pojo.Order;
import com.car.carsharing.pojo.UserOrder;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface OrderMapper {
    int addOrder(Order order);

    List<UserOrder> getUserOrder(@Param("userId") Integer userId);

    Integer updateOrder(Order order);
}
